package ibmetp.mis.controller.user;

import ibmetp.mis.service.UserService;
import ibmetp.mis.serviceImpl.UserServiceImpl;

import java.io.IOException;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * 删除用户Servlet
 * @author LAN DABIN
 * @created 2011-10-1
 *
 */
public class UserDelServlet extends HttpServlet {
	private static final long serialVersionUID = 1L;
    
    public UserDelServlet() {
        super();
       
    }

	protected void service(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
		System.out.println("Calling UserDelServlet..");
		//用户Id数组
		String userIds=request.getParameter("userId");
		
		//删除用户
		if(userIds!=null){
		System.out.println("Del userIds:"+userIds);
		UserService us=new UserServiceImpl();
		us.deleteUserByIds(userIds);		
		}
		
	}

}
